#ifndef QUERYMANAGER_H
#define QUERYMANAGER_H

#include <Logic/para.h>
#include <Logic/session.h>
#include <Logic/xmlbuilder.h>
#include <Transport/clientapplication.h>

class QueryManager
{
public:
    static void SendAuthorization(QString login, QString pass = "");
    static void SendRegistration(QString login, QString pass);
    static void SendProfileEditing(Session ss, QString pass ="", QString name ="", QString surname ="");
    static void SendUpdate(Session ss);
    static void SendRoomsList(Session ss);
    static void SendJoinRoom(Session ss, QString room, QString pass ="");
    static void SendGetUsers(Session ss, QString room);
    static void SendGetMessages(Session ss, QString room);
    static void SendMessage(Session ss, QString room, QString text);
    static void SendSetRule(Session ss, QString room, QString user, QString rule);
    static void SendEditRoom(Session ss, QString room, QString descr, QString pass = "");
    static void SendLeave(Session ss, QString room);
    static void SendDisconnect(Session ss);
};

#endif // QUERYMANAGER_H
